package com.fsai.cms.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fsai.cms.base.BaseEntity;

/**
 * 文章管理对象 cms_cont
 * 
 * @author jaffe
 * @date 2021-03-12
 */
public class CmsCont extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 主键ID */
	private Long contId;

	/** 所属站点 */
	private Long siteId;

	/** 文章标题 */
	private String contTitle;

	/** 所属栏目 */
	private Long cateId;

	/** 所属栏目对象 */
	@JsonIgnore
	private CmsCate cmsCate;
	//栏目名称
	private String cateTitle;
	/** 处室名称 */
	private String orgTitle;

	/** 文章作者 */
	private String contAuthor;

	/** 文章来源 */
	private String contSource;

	/** 发布时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date contPubDatetime;

	/** 封面缩略图 */
	private String contShortPic;

	/** 关键词 */
	private String contKeyWord;

	/** 文章摘要 */
	private String contDesc;

	/** 文章内容 */
	private String contDetails;

	/** 是否显示 */
	private String contDisplay;

	/** 文章类型 */
	private String contType;

	/** 是否置顶 */
	private String topFlag;

	/** 浏览次数 */
	private String hitCount;

	/** 静态页面地址 */
	private String staticHtmlUrl;

	/** 审核状态 */
	private String auditStatus;

	/** 审核备注 */
	private String auditRemark;

	/** 同步状态 */
	private String syncStatus;

	/** 同步申请审核备注 */
	private String syncRemark;

	/** 启用状态 */
	private String status;

	//是否特殊分类 - 中心的信息公开栏目，可以将内设机构上传的文章同步中心的信息公开处
	private String specCate;

	/**
	 * @return the specCate
	 */
	public String getSpecCate() {
		return specCate;
	}

	/**
	 * @param specCate
	 *            the specCate to set
	 */
	public void setSpecCate(String specCate) {
		this.specCate = specCate;
	}

	public String getCateTitle() {
		return cateTitle;
	}

	public void setCateTitle(String cateTitle) {
		this.cateTitle = cateTitle;
	}

	public String getOrgTitle() {
		return orgTitle;
	}

	public void setOrgTitle(String orgTitle) {
		this.orgTitle = orgTitle;
	}

	public CmsCate getCmsCate() {
		if (cmsCate == null) {
			cmsCate = new CmsCate();
		}
		return cmsCate;
	}

	public void setCmsCate(CmsCate cmsCate) {
		this.cmsCate = cmsCate;
	}

	public void setContId(Long contId) {
		this.contId = contId;
	}

	public Long getContId() {
		return contId;
	}

	public void setSiteId(Long siteId) {
		this.siteId = siteId;
	}

	public Long getSiteId() {
		return siteId;
	}

	public void setContTitle(String contTitle) {
		this.contTitle = contTitle;
	}

	public String getContTitle() {
		return contTitle;
	}

	public void setCateId(Long cateId) {
		this.cateId = cateId;
	}

	public Long getCateId() {
		return cateId;
	}

	public void setContAuthor(String contAuthor) {
		this.contAuthor = contAuthor;
	}

	public String getContAuthor() {
		return contAuthor;
	}

	public void setContSource(String contSource) {
		this.contSource = contSource;
	}

	public String getContSource() {
		return contSource;
	}

	public void setContPubDatetime(Date contPubDatetime) {
		this.contPubDatetime = contPubDatetime;
	}

	public Date getContPubDatetime() {
		return contPubDatetime;
	}

	public void setContShortPic(String contShortPic) {
		this.contShortPic = contShortPic;
	}

	public String getContShortPic() {
		return contShortPic;
	}

	public void setContKeyWord(String contKeyWord) {
		this.contKeyWord = contKeyWord;
	}

	public String getContKeyWord() {
		return contKeyWord;
	}

	public void setContDesc(String contDesc) {
		this.contDesc = contDesc;
	}

	public String getContDesc() {
		return contDesc;
	}

	public void setContDetails(String contDetails) {
		this.contDetails = contDetails;
	}

	public String getContDetails() {
		return contDetails;
	}

	public void setContDisplay(String contDisplay) {
		this.contDisplay = contDisplay;
	}

	public String getContDisplay() {
		return contDisplay;
	}

	public void setContType(String contType) {
		this.contType = contType;
	}

	public String getContType() {
		return contType;
	}

	public void setTopFlag(String topFlag) {
		this.topFlag = topFlag;
	}

	public String getTopFlag() {
		return topFlag;
	}

	public void setHitCount(String hitCount) {
		this.hitCount = hitCount;
	}

	public String getHitCount() {
		return hitCount;
	}

	public void setStaticHtmlUrl(String staticHtmlUrl) {
		this.staticHtmlUrl = staticHtmlUrl;
	}

	public String getStaticHtmlUrl() {
		return staticHtmlUrl;
	}

	public void setAuditStatus(String auditStatus) {
		this.auditStatus = auditStatus;
	}

	public String getAuditStatus() {
		return auditStatus;
	}

	public void setAuditRemark(String auditRemark) {
		this.auditRemark = auditRemark;
	}

	public String getAuditRemark() {
		return auditRemark;
	}

	public void setSyncStatus(String syncStatus) {
		this.syncStatus = syncStatus;
	}

	public String getSyncStatus() {
		return syncStatus;
	}

	public void setSyncRemark(String syncRemark) {
		this.syncRemark = syncRemark;
	}

	public String getSyncRemark() {
		return syncRemark;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatus() {
		return status;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("contId", getContId())
				.append("siteId", getSiteId()).append("contTitle", getContTitle()).append("cateId", getCateId())
				.append("contAuthor", getContAuthor()).append("contSource", getContSource())
				.append("contPubDatetime", getContPubDatetime()).append("contShortPic", getContShortPic())
				.append("contKeyWord", getContKeyWord()).append("contDesc", getContDesc())
				.append("contDetails", getContDetails()).append("contDisplay", getContDisplay())
				.append("contType", getContType()).append("topFlag", getTopFlag()).append("hitCount", getHitCount())
				.append("staticHtmlUrl", getStaticHtmlUrl()).append("auditStatus", getAuditStatus())
				.append("auditRemark", getAuditRemark()).append("syncStatus", getSyncStatus())
				.append("syncRemark", getSyncRemark()).append("status", getStatus()).append("createBy", getCreateBy())
				.append("createTime", getCreateTime()).append("updateBy", getUpdateBy())
				.append("updateTime", getUpdateTime()).append("remark", getRemark()).toString();
	}
}
